<template>
<uni-shadow-root class="partials-stores-normal_mendian-normal_mendian"><template name="normal_mendian">

<block v-if="jsonData.mendianType==0&&arr.id">
<view class="normal_mendian">
  <image class="normal_mendian_logo" :src="arr.logo"></image>
  <view class="normal_mendian_info">
    <text class="normal_mendian_name">{{arr.name}}</text>
    <view class="normal_mendian_info_bottom">
      <text class="normal_mendian_addr" v-if="arr.address">{{arr.address}}</text>
      <text class="normal_mendian_addr" v-else>{{arr.province}}-{{arr.city}}</text>
      <view class="normal_mendian_time">
        <text class="normal_mendian_time_text">营业时间：</text>
        <text class="normal_mendian_time_value">{{arr.openTime}}:00-{{arr.closeTime}}:00</text>
      </view>
    </view>
  </view>
  <view class="navigation" @click.stop.prevent="click">
    <text class="navigation_text">地址详情</text>
    <image class="navigation_icon" src="https://image1.sansancloud.com/xianhua/2019_1/15/16/33/5_514.jpg"></image>
  </view>
</view>
</block>

<block v-if="jsonData.mendianType==2&&arr.id">
<view class="normal_mendian">
  <image class="normal_mendian_logo" :src="arr.logo"></image>
  <view class="normal_mendian_info">
    <text class="normal_mendian_name">{{arr.name}}</text>
    <view class="normal_mendian_info_bottom">
      <text class="normal_mendian_addr" v-if="arr.address">{{arr.address}}</text>
      <text class="normal_mendian_addr" v-else>{{arr.province}}-{{arr.city}}</text>
      <view class="normal_mendian_time">
        <text class="normal_mendian_time_text">营业时间：</text>
        <text class="normal_mendian_time_value">{{arr.openTime}}:00-{{arr.closeTime}}:00</text>
      </view>
    </view>
  </view>
  <view class="navigation" @click.stop.prevent="click">
    <text class="navigation_text">地址详情</text>
    <image class="navigation_icon" src="https://image1.sansancloud.com/xianhua/2019_1/15/16/33/5_514.jpg"></image>
  </view>
</view>
</block>

<block v-if="jsonData.mendianType==1&&arr.id">
<view class="normal_mendian">
  <image class="normal_mendian_logo" :src="arr.logo"></image>
  <view class="normal_mendian_info">
    <text class="normal_mendian_name">{{arr.name}}</text>
    <view class="normal_mendian_info_bottom">
      <text class="normal_mendian_addr" v-if="arr.address">{{arr.address}}</text>
      <text class="normal_mendian_addr" v-else>{{arr.province}}-{{arr.city}}</text>
      <view class="normal_mendian_time">
        <text class="normal_mendian_time_text">营业时间：</text>
        <text class="normal_mendian_time_value">{{arr.openTime}}:00-{{arr.closeTime}}:00</text>
      </view>
    </view>
  </view>
  <view class="navigation" @click.stop.prevent="click1">
    <text class="navigation_text">附近门店</text>
    <image class="navigation_icon" src="https://image1.sansancloud.com/xianhua/2019_1/15/16/33/5_514.jpg"></image>
  </view>
</view>
</block>
</template></uni-shadow-root>
</template>

<script>

global['__wxRoute'] = 'partials/stores/normal_mendian/normal_mendian'

Component({})

export default global['__wxComponents']['partials/stores/normal_mendian/normal_mendian']
</script>
<style platform="mp-weixin">
.normal_mendian{
  padding: 20rpx;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.normal_mendian_logo{
  width: 120rpx;
  height: 120rpx;
  border-radius: 120rpx;
  margin-right: 20rpx;
}
.normal_mendian_info{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 28rpx;
  width: 54%;
  color:#444;
}
.normal_mendian_name{
  font-weight: bold
}
.normal_mendian_info_bottom{
  display: flex;
  flex-direction: column;
}
.normal_mendian_addr{
  padding-right: 10rpx
}
.normal_mendian_time{
  display: flex;
  flex-direction: row;
  align-items: center;
  color: #ccc;
  font-size: 24rpx;
  margin-top: 4rpx
}
.navigation{
  display: flex;
  flex-direction: row;
  align-items: center;
  color: #999;
  font-size: 22rpx;
  border-left: 1rpx solid #eee;
  width: 25%;
  justify-content: flex-end;
  height:80rpx;
}
.navigation_icon{
  width: 24rpx;
  height: 24rpx;
  margin-left: 10rpx;
}
</style>